package com.byxy.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.byxy.model.User;

@Controller
public class Test {

	@RequestMapping("/admin_index")
	public String index(){
		User user = new User();
		return "index";
	}
	
	
	@RequestMapping("/sendmain")
	public String sendmain(){
		return "page/main";
	}
	//page/message/message.jsp
	@RequestMapping("/sendmessage")
	public String sendmessage(){
		return "page/message/message";
	}
	//sendmessageReply
	@RequestMapping("/sendmessageReply")
	public String sendmessageReply(){
		return "page/message/messageReply";
	}
	//sendallUsers
	@RequestMapping("/sendallUsers")
	public String sendallUsers(){
		return "page/user/allUsers";
	}
	//page/img/images.jsp
	@RequestMapping("/sendimages")
	public String sendimages(){
		return "page/img/images";
	}
	//page/news/newsList.jsp
	@RequestMapping("/sendnewsList")
	public String sendnewsList(){
		return "page/news/newsList";
	}
	//sendnewsAdd 
	@RequestMapping("/sendnewsAdd")
	public String sendnewsAdd(){
		return "page/news/newsAdd";
	}
	//友情链接 page/links/linksList.jsp
	@RequestMapping("/sendlinksList")
	public String sendlinksList(){
		return "page/links/linksList";
	}
	//sendlinksAdd
	@RequestMapping("/sendlinksAdd")
	public String sendlinksAdd(){
		return "page/links/linksAdd";
	}
	//senderror 错误页面
	
	@RequestMapping("/senderror")
	public String senderror(){
		return "page/404";
	}
	/**
	 * page/systemParameter/systemParameter.jsp
	 * sendSystemParameter
	 */
	@RequestMapping("/sendSystemParameter")
	public String sendSystemParameter(){
		return "page/systemParameter/systemParameter";
	}
	
	
	//sendlogout
	@RequestMapping("/sendlogout")
	public String sendlogout(){
		return "page/login/login";
	}
}
